Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

OLE Automation Error with Mapinfo
~Andy Lopnimaroden 01/26/2004 11:05 PM
Notes Client 6.5 Windows XP

I'm trying to create an OLE session from Lotus to our Mapinfo Runtime Environment. I've tried using createobject which returns an Error code of 0 but stops execution.
I've also tried getobject and run this whilst the mapinfo runtime program is running and I'm getting an "OLE Automation Error 207".

I've checked the OLE registration and our current Mapinfo OLE V6.5 is registered.

Any suggestions would be greatly appreciated.

Sub Click(Source As Button)
On Error Goto ErrorHandler

' Use Variant variables for objects
Dim appMapinfo As Variant, docObjV As Variant
Dim shapesObjV As Variant, shapeObjV As Variant
Dim mapinfoModule As String
Dim iPage As Integer, iShape As Integer, _
iManager As Integer
' Set appMapinfo = Createobject("Mapinfo.Runtime")
Set appMapinfo = Getobject("\\network location\MAPINFOR.EXE", "Mapinfo.Runtime")
ErrorHandler :
Messagebox "Error" & Str(Err) & ": " & Error$
Set appMapinfo = Nothing
End Sub

Go back